package com.zp.util;

import java.util.List;

/**
 * define all the Constant used in program
 * 
 * @author chenlijun08@gmail.com
 * 
 * @version 1.0
 * 
 * @date 2014/2/7
 * 
 */
public class Constant {

	public static final Object OBJECT_NULL = null;
	public static final List<?> LIST_NULL = null;
	public static final int ZERO = 0;
	public static final int ONE = 1;
	public static final int TWO = 2;
	public static final int THREE = 3;
	public static final int FOUR = 4;
	public static final int FIVE = 5;
	public static final int MAX_PASS_ERROR_NUM = 3;
	public static final int NEGATIVE_ONE = -1;
	public static final int PAGE_SIZE = 10;
	public static final int PAGE_NO = 1;
	public static final int MD5_MAX_INDEX = 256;
	public static final int MD5_DIGIT_NUM = 16;
	public static final int IMAGE_BUFFER=1024*5;
	public static final String OK = "OK";
	public static final String NOK = "NOK";
	public static final String USER_NOT_EXITS = "USER_NOT_EXITS";
	public static final String ON = "1";
	public static final String OFF = "0";
	public static final int SUCCESS_CODE = 268;
	public static final int FAILE_CODE = 267;
	public static final int EIGHT_HOUR_S = 28800;
	public static final String USER_ROLE = "G00001";
	public static final String PASS_LOCKED = "PASS_LOCKED";
	public static final String PASS_SAME = "PASS_SAME";
	public static final String USER_EXIST = "USER_EXIST";
	//this will be replaced by program automatically after
	public static final String PARENT_PATH="F:\\android_workspace\\ZP\\WebContent\\";
	public static final String FILE_LOCAL_PATH="F:/android_workspace/ZP/WebContent";
	public static final String UPLOAD_FOLDER="upload";
	public static final String IMAGE_SAVE_PATH ="upload\\image\\";
	public static final String COMP_IMAGE_SAVE_PATH = "cpupload\\image\\";
	public static final String COMMON_SAVE_PATH ="upload\\common\\";
	public static final String PNG_POSTFIX = ".png";
	public static final String JPG_POSTFIX = ".jpg";
	public static final String JPEG_POSTFIX = ".jpeg";
	public static final String BMP_POSTFIX = ".bmp";
	public static final String JPE_POSTFIX = ".jpe";
	public static final String GIF_POSTFIX = ".gif";
	public static final String JPEG_TYPE="image/jpeg";
	public static final String PNG_TYPE="image/png";
	public static final String GIF_TYPE="image/gif";
	public static final String BMP_TYPE="image/bmp";
	public static final long MAX_IMAGE_SIZE=1024*250;
	public static final String MAX_IMAGE_SIZE_MESSAGE="图片大小不能超过50Kb";
	public static final String ERROR_IMAGE_TYPE_MESSAGE="图片类型错误目前支持JEPG,PNG,GIF,BMP格式";
	public static final String OBJECT_NOT_EXITS="对象不存在";
	public static final String PATH_FILE_NAME="server.xml";
	public static final String SERVER_PATH_KEY="serverpath";
	public static final String SERVER_CONTENT_PATH="/";

}
